rename one dataframe column python

40

rename one dataframe column python -

#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)

Comments

Submit
0 Comments